﻿using BasicData.API.Dtos;
using BasicData.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace BasicData.API.Application.Command
{
     /// <summary>
    /// 登录查询命令
    /// </summary>

    public class LoginQueryCommand:IRequest<APIResult<UserDTO>>
    {
         /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空")]
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string Password { get; set; }
    }
}
